package com.thd.springboot.framework.security.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

/**
 * com.thd.springboot.framework.security.config.SecurityConfig
 *
 * @author: wanglei62
 * @DATE: 2022/10/13 12:22
 **/
@EnableGlobalMethodSecurity(prePostEnabled = true)   // 开启方法注解鉴权
@EnableWebSecurity
@ConditionalOnMissingClass()
@Configuration
public class SecurityDefaultConfig {

}
